//
//  MyVoiceSystemCell.m
//  CoachsBook
//
//  Created by MaBookPro on 2022/8/26.
//

#import "MyVoiceSystemCell.h"

@implementation MyVoiceSystemCell



-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self creatcelllist];
    }
    return self;
}

-(void)creatcelllist{
 
    
    UIImageView *circleimgv = [[UIImageView alloc]initWithFrame:CGRectMake(15, 10, 40, 40)];
    circleimgv.backgroundColor = rgba(22, 120, 255, 0.5);
    circleimgv.image = [UIImage imageNamed:@""];
    circleimgv.layer.cornerRadius = 40/2;
    circleimgv.userInteractionEnabled = YES;
    [self addSubview:circleimgv];
    
    UILabel *typeLab = [[UILabel alloc]initWithFrame:CGRectMake(circleimgv.frame.size.width+circleimgv.frame.origin.x+15,  20, APPwidth/2, 20)];
    typeLab.text = @"全国通用-基础版";
    typeLab.textColor = rgba(51, 51, 51, 1);
    typeLab.textAlignment = 0;
    typeLab.font = [UIFont systemFontOfSize:14];
    [self addSubview:typeLab];
    
    UIButton *bmBtn = [[UIButton alloc]initWithFrame:CGRectMake(APPwidth-100, 20, 50, 20)];
    [bmBtn setTitle:@"使用中" forState:0];
    bmBtn.contentHorizontalAlignment = 0;
    [bmBtn setTitleColor:[UIColor whiteColor] forState:0];
    [bmBtn setBackgroundColor:rgba(22, 120, 255, 0.5)];
    bmBtn.titleLabel.font = [UIFont systemFontOfSize:14];
    bmBtn.layer.cornerRadius = 20/2;
    [self addSubview:bmBtn];
    
    UIView *line = [[UIView alloc]initWithFrame:CGRectMake(0,59, APPwidth, 1)];
    line.backgroundColor = rgba(245, 245, 250, 1);
    [self addSubview:line];
    
}










- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
